//
//  KKTabBarController.m
//  FreightAssistant
//
//  Created by leo on 15/10/27.
//  Copyright © 2015年 leo. All rights reserved.
//

#import "KKTabBarController.h"

@interface KKTabBarController ()

@end

@implementation KKTabBarController

- (void)loadView {
    [super loadView];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
//    NSArray* titles = @[@"home",@"goods",@"founded",@"customer",@"report"];
    NSArray *items = self.tabBar.items;
    for (NSInteger index = 0; index < items.count; index++) {
        UITabBarItem *item = items[index];
        item.imageInsets = UIEdgeInsetsMake(6, 0, -6, 0);
        
        if (item.tag == 2) {
            item.selectedImage = [[UIImage imageNamed: @"tabItem_founded_selected" ] imageWithRenderingMode: UIImageRenderingModeAlwaysOriginal];
        }
    }
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark -

- (void)onClick:(UIBarButtonItem*)item {
    
    
}


@end
